package com.dwd.hrm.dto;

import com.dwd.hrm.domain.Employee;
import com.dwd.hrm.domain.Tenant;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Description: TODO
 * @Author 汶狄
 * @Date 2021/3/5 9:30
 * @Version 1.0
 */

public class TenantEnteringDto {
    @Valid
    private Employee employee;
    @Valid
    private Tenant tenant;
    @NotNull
    private Long mealId;
    @NotNull
    private String comfirmPassword;

    @Override
    public String toString() {
        return "TenantEnteringDto{" +
                "employee=" + employee +
                ", tenant=" + tenant +
                ", mealId=" + mealId +
                ", comfirmPassword='" + comfirmPassword + '\'' +
                '}';
    }

    public TenantEnteringDto() {
    }

    public TenantEnteringDto(Employee employee, Tenant tenant, Long mealId, String comfirmPassword) {
        this.employee = employee;
        this.tenant = tenant;
        this.mealId = mealId;
        this.comfirmPassword = comfirmPassword;
    }

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public Tenant getTenant() {
        return tenant;
    }

    public void setTenant(Tenant tenant) {
        this.tenant = tenant;
    }

    public Long getMealId() {
        return mealId;
    }

    public void setMealId(Long mealId) {
        this.mealId = mealId;
    }

    public String getComfirmPassword() {
        return comfirmPassword;
    }

    public void setComfirmPassword(String comfirmPassword) {
        this.comfirmPassword = comfirmPassword;
    }
}
